package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.FkwzTaskCheckDetailMapper;
import com.ruoyi.system.domain.FkwzTaskCheckDetail;
import com.ruoyi.system.service.IFkwzTaskCheckDetailService;

/**
 * 检查记录Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-06-11
 */
@Service
public class FkwzTaskCheckDetailServiceImpl implements IFkwzTaskCheckDetailService 
{
    @Autowired
    private FkwzTaskCheckDetailMapper fkwzTaskCheckDetailMapper;

    /**
     * 查询检查记录
     * 
     * @param chenkTaskId 检查记录主键
     * @return 检查记录
     */
    @Override
    public FkwzTaskCheckDetail selectFkwzTaskCheckDetailByChenkTaskId(Long chenkTaskId)
    {
        return fkwzTaskCheckDetailMapper.selectFkwzTaskCheckDetailByChenkTaskId(chenkTaskId);
    }

    /**
     * 查询检查记录列表
     * 
     * @param fkwzTaskCheckDetail 检查记录
     * @return 检查记录
     */
    @Override
    public List<FkwzTaskCheckDetail> selectFkwzTaskCheckDetailList(FkwzTaskCheckDetail fkwzTaskCheckDetail)
    {
        return fkwzTaskCheckDetailMapper.selectFkwzTaskCheckDetailList(fkwzTaskCheckDetail);
    }

    /**
     * 新增检查记录
     * 
     * @param fkwzTaskCheckDetail 检查记录
     * @return 结果
     */
    @Override
    public int insertFkwzTaskCheckDetail(FkwzTaskCheckDetail fkwzTaskCheckDetail)
    {
        return fkwzTaskCheckDetailMapper.insertFkwzTaskCheckDetail(fkwzTaskCheckDetail);
    }

    /**
     * 修改检查记录
     * 
     * @param fkwzTaskCheckDetail 检查记录
     * @return 结果
     */
    @Override
    public int updateFkwzTaskCheckDetail(FkwzTaskCheckDetail fkwzTaskCheckDetail)
    {
        return fkwzTaskCheckDetailMapper.updateFkwzTaskCheckDetail(fkwzTaskCheckDetail);
    }

    /**
     * 批量删除检查记录
     * 
     * @param chenkTaskIds 需要删除的检查记录主键
     * @return 结果
     */
    @Override
    public int deleteFkwzTaskCheckDetailByChenkTaskIds(Long[] chenkTaskIds)
    {
        return fkwzTaskCheckDetailMapper.deleteFkwzTaskCheckDetailByChenkTaskIds(chenkTaskIds);
    }

    /**
     * 删除检查记录信息
     * 
     * @param chenkTaskId 检查记录主键
     * @return 结果
     */
    @Override
    public int deleteFkwzTaskCheckDetailByChenkTaskId(Long chenkTaskId)
    {
        return fkwzTaskCheckDetailMapper.deleteFkwzTaskCheckDetailByChenkTaskId(chenkTaskId);
    }
}
